#include <iostream>
using namespace std;

class func
{
public:
	func() {}
	~func() {}
public:
	int x;
};

class func1 : public virtual func
{
public:
	func1() {}
	~func1() {}
public:
	void func() {}
};

class func2 : public virtual func
{
public:
	func2() {}
	~func2() {}
public:
	void func() {}
};

class test : public func1, public func2
{
public:
	test() {}
	~test() {}
public:
	void func() {
		cout << "func() in test" << x << endl;
	}
};

int main()
{
	test t;
	t.func();
	return 0;
}